FROM node:16.14

WORKDIR /app

ENV TZ="Asia/Shanghai"

COPY . .

# 如果各公司有自己的私有源，可以替换registry地址npm cache clean --force
RUN npm cache clean --force
RUN npm config set strict-ssl false
RUN npm install pnpm -g
RUN pnpm install  --registry https://registry.npmmirror.com

# RUN npm run build

# 如果端口更换，这边可以更新一下
EXPOSE 7001
VOLUME [ "/app" ]

CMD ["npm", "run", "start"]
